package com.imooc.mybatisplusappdemo.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.imooc.mybatisplusappdemo.entity.Resource;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imooc.mybatisplusappdemo.vo.ResourceVO;
import java.util.List;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 资源表 Mapper 接口
 * </p>
 *
 * @author sanchongmen
 * @since 2021-03-22
 */
public interface ResourceMapper extends BaseMapper<Resource> {

  /**
   * 查询当前登录人的资源
   * @param wrapper
   * @return
   */
  List<ResourceVO> listResource(@Param(Constants.WRAPPER) Wrapper<Resource> wrapper);

}
